

 <!--angularjs控制器-->
 <script type="text/javascript" >


function getQueryString(name) { 
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
var r = window.location.search.substr(1).match(reg); 
if (r != null) return unescape(r[2]); return null; 
} 


function getProgramIdValue(){

  var programIdValue = window.location.href;

  programIdValue = programIdValue.substr(programIdValue.lastIndexOf('=') +1,programIdValue.length) ;

 return programIdValue ;

}






 app.controller('playerCtrl', function($scope, $http,$state,$stateParams) {



  var flashvars={
    f:'http://img.ksbbs.com/asset/Mon_1605/0ec8cc80112a2d6.mp4',
    c:0,
    b:0,
    i:'http://www.ckplayer.com/static/images/cqdw.jpg'
    };
  var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
  CKobject.embedSWF('vendor/jquery/ckplayer6.8/ckplayer/ckplayer.swf','a1','ckplayer_a2','600','400',flashvars,params);
  /*
  CKobject.embedSWF(播放器路径,容器id,播放器id/name,播放器宽,播放器高,flashvars的值,其它定义也可省略);
  下面三行是调用html5播放器用到的
  */
  var video=['http://img.ksbbs.com/asset/Mon_1605/0ec8cc80112a2d6.mp4->video/mp4'];
  var support=['iPad','iPhone','ios','android+false','msie10+false'];
  CKobject.embedHTML5('a1','ckplayer_a1',600,400,video,flashvars,support);
  
    

    $scope.goEdit = function () {


 var flashvars={
    f: $scope.playUrl,
    c:0,
    b:0,
    i:'http://www.ckplayer.com/static/images/cqdw.jpg'
    };
  var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
  CKobject.embedSWF('vendor/jquery/ckplayer6.8/ckplayer/ckplayer.swf','a1','ckplayer_a2','600','400',flashvars,params);
  /*
  CKobject.embedSWF(播放器路径,容器id,播放器id/name,播放器宽,播放器高,flashvars的值,其它定义也可省略);
  下面三行是调用html5播放器用到的
  */
  var video=['http://img.ksbbs.com/asset/Mon_1605/0ec8cc80112a2d6.mp4->video/mp4'];
  var support=['iPad','iPhone','ios','android+false','msie10+false'];
  CKobject.embedHTML5('a1','ckplayer_a1',600,400,video,flashvars,support);
  



    }
  });

 </script>
<div class="wrapper-md">
<div class="row">
 <div class="hbox hbox-auto-xs hbox-auto-sm"  ng-controller="playerCtrl">
      <div id="a1"></div>
      <input type="hidden" id="playerMsg" >
 <div class="form-group">   
    <label  class="col-sm-1 control-label">URL:</label>
    <div class="col-sm-5">
      <input type="text" class="form-control" placeholder="播放地址" ng-model="playUrl"  >
    </div>
    <div class="col-sm-5">
    <a href="javascript:void(0);" ng-click="goEdit();" ><button class="btn btn-default btn-sm "><i class="fa fa-edit fa-lg"></i>&nbsp; 确认</button></a>
    </div>
  </div>

    </div> 
    </div>
    </div>